// Learn cc.Class:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

const GameDataManger = require("../GameDataManger");

cc.Class({
    extends: cc.Component,

    properties: {
        statauLab:{     
            default:null,
            type:cc.Label
        },

        role1:{     
            default:null,
            type:cc.Node
        },

        role2:{     
            default:null,
            type:cc.Node
        },
    },

    onEnable(){
        this.role2.active = false;
    },

    refreshRole(){

    },

    btnClick(event,str){
        if (str == "matchBtn"){
            //todo 开始游戏
           // UIPanelManager.open(UIPanelManager.matchNode);
        }else if (str == "invit"){
            //todo 邀请好友
           // UIPanelManager.open(UIPanelManager.matchNode);
        }
    },


    onDisable(){
    },

    // update (dt) {},
});
